using System.ComponentModel.DataAnnotations;

namespace SmartHealthcare.Write.Api.DTo
{
    /// <summary>
    /// 更新病人预交金额DTO
    /// </summary>
    public class UpdateAdvancePaymentDto
    {
        /// <summary>
        /// 病人卡号
        /// </summary>
        [Required(ErrorMessage = "病人卡号不能为空")]
        public string MedicalCard { get; set; } = string.Empty;

        /// <summary>
        /// 病人姓名
        /// </summary>
        [Required(ErrorMessage = "病人姓名不能为空")]
        public string PatientName { get; set; } = string.Empty;

        /// <summary>
        /// 要增加的预交金额（将在原有金额基础上累加）
        /// </summary>
        [Required(ErrorMessage = "预交金额不能为空")]
        [Range(0, double.MaxValue, ErrorMessage = "预交金额必须大于等于0")]
        public decimal AddAdvancePayment { get; set; }

        /// <summary>
        /// 操作备注
        /// </summary>
        public string Remarks { get; set; } = string.Empty;
    }
} 